package com.yicun.HttpUtils;

import android.content.Context;
import android.content.SharedPreferences;

/* loaded from: classes.dex */
public class SPUtils {
    public static String get(Context context, String str, String str2) {
        return context.getSharedPreferences("chuchen", 0).getString(str, str2);
    }

    public static int getInt(Context context, String str, int i) {
        return context.getSharedPreferences("chuchen", 0).getInt(str, i);
    }

    public static void put(Context context, String str, String str2) {
        SharedPreferences.Editor edit = context.getSharedPreferences("chuchen", 0).edit();
        edit.putString(str, str2);
        edit.commit();
    }
}